package conf

var (
	DefaultClient Client
)

func Init(driverName string) (err error) {
	var (
		driver Driver
	)
	if driver, err = GetDriver(driverName); err != nil {
		return
	}
	DefaultClient, err = driver.New()
	return
}

func Watch() error {
	return DefaultClient.WatchConf()
}
